import request from '@/utils/request'



export function getRolePermissions(data) {
  return request({
    url: '/backend_system_role_permissions',
    method: 'post',
    data
  })
}
export function getPermissions(data) {
  return request({
    url: '/backend_system_menu',
    method: 'post',
    data
  })
}
export function getList(query) {
  return request({
    url: '/backend_system_role_list',
    method: 'post',
    query
  })
}

export function create(data) {
  return request({
    url: '/backend_system_role_add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/backend_system_role_edit',
    method: 'post',
    data
  })
}
export function deleteRecord(data) {
  return request({
    url: '/backend_system_role_del',
    method: 'post',
    data
  })
}
